﻿using Business.Views;
using Prism.Ioc;
using Prism.Modularity;
using Prism.Regions;

namespace Business
{
    public class BusinessModule : IModule
    {
        public void OnInitialized(IContainerProvider containerProvider)
        {
            var regionManager = containerProvider.Resolve<IRegionManager>();
            //var region= regionManager.Regions["MenuList"];
            // region.RequestNavigate("MainPage");
            regionManager.RegisterViewWithRegion("NavigationContent", typeof(MainPage));
            //regionManager.RegisterViewWithRegion("MenuList", typeof(MainView));
        }

        public void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterForNavigation<MainPage>();
            containerRegistry.RegisterForNavigation<BusinessView>();
            containerRegistry.RegisterForNavigation<InfoView>();

        }
    }
}